package com.dzm.except;

import com.dzm.utils.ResponseEnum;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 作者：Dzm
 * 时间：2024-08-26-16:41
 * 功能：
 */

@Data
@NoArgsConstructor
public class LoginException extends RuntimeException{
    private String message;

    public LoginException(String message) {
        super(message);
        this.message = message;
    }

    public LoginException(ResponseEnum respEnum) {
        super(respEnum.getMessage());
        this.message = respEnum.getMessage();
    }
}
